package com.probiz.estore.eai.catalog;

import com.probiz.estore.common.service.ProductCategoryService;
import com.probiz.estore.eai.catalog.generated.InventoryClass;
import com.probiz.estore.eai.common.GenericPartialUnmarshaller;

public class InventoryClassPartialUnmarshaller extends GenericPartialUnmarshaller<InventoryClass>  {
	private ProductCategoryService categoryService;

	
	public void setCategoryService(ProductCategoryService categoryService) {
		this.categoryService = categoryService;
	}

	public static void main(String[] argv) throws Exception {
//		InventoryClassPartialUnmarshaller un = new InventoryClassPartialUnmarshaller();
	}

	@Override
	public void processEntity(InventoryClass entity) throws Exception {
		categoryService.doImportCategoryForEai(entity);
	}
}
